/**
 * @author qiuxj
 * @text 员工基本信息
 */
var vStaff, vWorker, layout;
var staff = {
    init: function(){
        // 定义DWR
        var dwr = {
            pageStaff: staffDwr.pageStaff,
            getStaff: staffDwr.getStaff,
            updateStaff: staffDwr.updateStaff,
            createStaff: staffDwr.createStaff,
            validStaff: staffDwr.validStaff,
            pageWorker: staffDwr.pageWorker,
            createWorker: staffDwr.createWorker,
            updateWorker: staffDwr.updateWorker,
            getWorker: staffDwr.getWorker,
            getWorkerByLoginCode: staffDwr.getWorkerByLoginCode,
            getStaticValueKls: staticDwr.getStaticValueKls,
            getAreaKls: areaDwr.getAreaKls,
            getCompanyKls: companyDwr.getCompanyKls
        };
        
        vStaff = staffList.init(dwr);
        vWorker = workerList.init(dwr);
        
        layout = new Ext.TabPanel({
            el: 'staff',
            border: false,
            autoScroll: true,
            activeTab: 0,
            items: [vStaff, vWorker]
        });
        layout.render();
    }
}

Ext.onReady(staff.init, staff);

